package c

import android.app.Activity
import android.content.Intent
import cc.bc.tc.R
import i.CC
import k.Y
import l.Z
import z.CA
import x.BY
import ba.CB
import w.BX
import y.BZ
import v.BW
import m.BC
import h.BJ
import t.BU
import ooww.ssww.strong.utils.CommenContext
import ooww.ssww.strong.utils.OnekeyField
import ooww.ssww.strong.utils.StatisticMob
import j.V
import bb.CD
import yyee.llee.mmee.base_api.um.UMKey
import yyee.llee.mmee.base_api.um.UTJ
import bj.CY

/*
* @author lifeng
* @createTime 2024/4/20 5:06 PM
* @des 清理相关功能跳转页面
*/
object DX {

    const val CLEAN_CODE = 13
    const val SILVER_CODE = 12
    const val WECHAT_CODE = 14
    const val UNINSTALL_CODE = 15
    const val QQ_CODE = 16
    const val FILE_CODE = 20
    const val PM_CODE = 21
    const val PP_CODE = 22
    const val VM_CODE = 23
    const val AM_CODE = 24
    const val PKM_CODE = 25
    const val from = "from"

    fun lajiqingli(context: Activity) {
        val intent = Intent(CommenContext.get(), BC::class.java)
        intent.putExtra(OnekeyField.ONEKEYCLEAN, "home")
        intent.putExtra(OnekeyField.STATISTICS_KEY, StatisticMob.STATISTIC_HOME_ID)
        context.startActivityForResult(intent, CLEAN_CODE)
        UTJ.onEvent(UMKey.clean_click)
    }

    fun kamanyouhua(context: Activity) {
        val intentUninstall = Intent(CommenContext.get(), BJ::class.java)
        intentUninstall.putExtra(OnekeyField.ONEKEYCLEAN, "软件管理")
        intentUninstall.putExtra(OnekeyField.STATISTICS_KEY, StatisticMob.STATISTIC_HOME_ID)
        intentUninstall.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
        context.startActivityForResult(intentUninstall, UNINSTALL_CODE)
        UTJ.onEvent(UMKey.slow_click)
    }

    fun bingduchasha(context: Activity) {
        val intentAitiVirusChat = Intent(CommenContext.get(), CC::class.java)
        intentAitiVirusChat.putExtra(OnekeyField.ONEKEYCLEAN, context.getString(R.string.微信清理))
        intentAitiVirusChat.putExtra(OnekeyField.STATISTICS_KEY, StatisticMob.STATISTIC_HOME_ID)
        intentAitiVirusChat.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
        context.startActivityForResult(intentAitiVirusChat, WECHAT_CODE)
        UTJ.onEvent(UMKey.killing_click)
    }

    fun shenduqingli(context: Activity) {
        context.startActivityForResult(
            Intent(CommenContext.get(), Z::class.java),
            SILVER_CODE
        )
        UTJ.onEvent(UMKey.cleaning_click)
    }

    fun shoujijiangwen(context: Activity) {
        val intentQQ = Intent(CommenContext.get(), Y::class.java)
        intentQQ.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
        intentQQ.putExtra(OnekeyField.ONEKEYCLEAN, "QQ清理")
        intentQQ.putExtra(OnekeyField.STATISTICS_KEY, StatisticMob.STATISTIC_HOME_ID)
        context.startActivityForResult(intentQQ, QQ_CODE)
        UTJ.onEvent(UMKey.cool_click)
    }


    // =============================================

    fun weixinqingli(context: Activity) {
        val intentWeChat = Intent(CommenContext.get(), V::class.java)
        intentWeChat.putExtra(OnekeyField.ONEKEYCLEAN, context.getString(R.string.微信清理))
        intentWeChat.putExtra(OnekeyField.STATISTICS_KEY, StatisticMob.STATISTIC_HOME_ID)
        intentWeChat.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
        context.startActivityForResult(intentWeChat, WECHAT_CODE)
        UTJ.onEvent(UMKey.Wechat_click)
    }

    fun shipinqingli(context: Activity) {
        val intentVM = Intent(CommenContext.get(), BZ::class.java)
        intentVM.putExtra(from, "home")
        intentVM.putExtra(OnekeyField.ONEKEYCLEAN, context.getString(R.string.视频清理))
        intentVM.putExtra(OnekeyField.STATISTICS_KEY, StatisticMob.STATISTIC_HOME_ID)
        context.startActivityForResult(intentVM, VM_CODE)
        UTJ.onEvent(UMKey.video_click)
    }


    fun yinyueqingli(context: Activity) {
        val intentMM = Intent(CommenContext.get(), BY::class.java)
        intentMM.putExtra(from, "home")
        intentMM.putExtra(OnekeyField.ONEKEYCLEAN, context.getString(R.string.音乐清理))
        intentMM.putExtra(OnekeyField.STATISTICS_KEY, StatisticMob.STATISTIC_HOME_ID)
        context.startActivityForResult(intentMM, PP_CODE)
    }

    fun xiangceqingli(context: Activity) {
        val intentPM = Intent(CommenContext.get(), BX::class.java)
        intentPM.putExtra(from, "home")
        intentPM.putExtra(OnekeyField.ONEKEYCLEAN, context.getString(R.string.相册清理))
        intentPM.putExtra(OnekeyField.STATISTICS_KEY, StatisticMob.STATISTIC_HOME_ID)
        context.startActivityForResult(intentPM, PM_CODE)
        UTJ.onEvent(UMKey.picture_click)
    }

    fun dawenjianqingli(context: Activity) {
        val intentFM = Intent(CommenContext.get(), BW::class.java)
        intentFM.putExtra(from, "home")
        intentFM.putExtra(OnekeyField.ONEKEYCLEAN, context.getString(R.string.大文件清理))
        intentFM.putExtra(OnekeyField.STATISTICS_KEY, StatisticMob.STATISTIC_HOME_ID)
        context.startActivityForResult(intentFM, FILE_CODE)
        UTJ.onEvent(UMKey.large_clean_click)
    }

    fun anzhuangbaoqingli(context: Activity) {
        val intentAM = Intent(CommenContext.get(), CA::class.java)
        intentAM.putExtra(OnekeyField.ONEKEYCLEAN, context.getString(R.string.安装包清理))
        intentAM.putExtra(OnekeyField.STATISTICS_KEY, StatisticMob.STATISTIC_HOME_ID)
        context.startActivityForResult(intentAM, AM_CODE)
    }
    fun anzhuangbaoqingli2(context: Activity) {
        val intentAM = Intent(CommenContext.get(), BU::class.java)
        intentAM.putExtra(OnekeyField.ONEKEYCLEAN, context.getString(R.string.安装包清理))
        intentAM.putExtra(OnekeyField.STATISTICS_KEY, StatisticMob.STATISTIC_HOME_ID)
        context.startActivityForResult(intentAM, AM_CODE)
    }

    fun yasuobaoqingli(context: Activity) {
        val intentPKM = Intent(CommenContext.get(), CB::class.java)
        intentPKM.putExtra(OnekeyField.ONEKEYCLEAN, context.getString(R.string.压缩包清理))
        intentPKM.putExtra(OnekeyField.STATISTICS_KEY, StatisticMob.STATISTIC_HOME_ID)
        context.startActivityForResult(intentPKM, PKM_CODE)
    }



    fun haodianyouhua(context: Activity) {

    }

    fun wangluojiasu(context: Activity) {

    }

    fun guanggaoqinglli(context: Activity) {

    }

    fun fangzhapianjiance(context: Activity) {

    }

    fun eyiruanjianjiance(context: Activity) {

    }

    fun wifianquan(context: Activity) {

    }



    fun suipianzhuanqing(context: Activity) {

    }

    fun gengxinbingduku(context: Activity) {

    }

    fun weixinzhanghaojiance(context: Activity) {

    }

    fun dianchijiankangbaohu(context: Activity) {

    }


    fun fangdajing(context: Activity) {
        val intent = Intent(context, CY::class.java)
        context.startActivity(intent)
    }

    fun saomiaoshibie(context: Activity) {
        CD.startNewCameraMagnifygActivity(
            context, CD.VIEW_FROM_ANIMAL
        )
    }





}